@import './base.css';

#app {
  height: 100%;
}

// 滚动条兼容火狐
* {
  scrollbar-width: thin;
  scrollbar-color: #b4bbc5 #f5f5f5;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 样式滚动条滑块 */
::-webkit-scrollbar-thumb {
  background-color: #b4bbc5;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

/* 样式滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #919191;
}

html[theme='light'] {
  .ant-notification {
    color: rgba(0, 0, 0, 0.88);

    .ant-notification-notice {
      background: #ffffff;
      box-shadow:
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);

      .ant-notification-notice-message {
        color: rgba(0, 0, 0, 0.88);
      }

      .ant-notification-notice-close {
        color: rgba(0, 0, 0, 0.45);
      }
    }
  }
}

html[theme='dark'] {
  .ant-notification {
    color: rgba(255, 255, 255, 0.85);

    .ant-notification-notice {
      background: #1f1f1f;
      box-shadow:
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);

      .ant-notification-notice-message {
        color: rgba(255, 255, 255, 0.85);
      }

      .ant-notification-notice-close {
        color: rgba(255, 255, 255, 0.45);
      }
    }
  }
}

.ant-modal .ant-modal-content {
  padding: 0 !important;
  border-radius: 8px !important;
}

.ant-modal .ant-modal-header {
  padding: 16px 24px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  border-radius: 8px 8px 0 0 !important;
  margin-bottom: 0 !important;
}

.ant-modal .ant-modal-body {
  padding: 20px 24px !important;
}

.ai-modal .ant-modal-body {
  padding: 24px 28px 24px 24px !important;
}

.ant-modal .ant-modal-footer {
  padding: 10px 16px !important;
  border-top: 1px solid #f0f0f0 !important;
  margin-top: 0 !important;
}

.page-content {
  height: 100%;
  .ant-card-body {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .header {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .main {
    margin-top: 16px;
    flex: 1 1 auto;
    overflow: hidden auto;
  }

  .search-form .ant-form-item {
    margin-bottom: 10px;
  }
}

.ant-table .ant-table-cell .ant-btn-link {
  padding: 4px 6px 4px 0 !important;
}

.modal-form .ant-input,
.modal-form .ant-select.ant-select-in-form-item {
  width: 100%;
}
